package priv.wangy.micro.common.config.feign.decoder;

import feign.Feign;
import feign.codec.Decoder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Scope;

/**
 * @author zhangjq
 * @since 2023-10-31
 */
public class FullHttpRspnConfig {

    @Bean
    public Decoder feignDecoder() {
        return new FullHttpRspnDecoder();
    }

    @Bean
    @Scope("prototype")
    public Feign.Builder fiegnBuilder() {
        return Feign.builder();
    }
}
